Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Postgres 17 checkpointer stats #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsndqst
Copy link

@tsndqst tsndqst commented Nov 23, 2024

In PostgreSQL 17 the checkpointer got its own view so the stats have different metric names in Prometheus. I tested this change on both Postgres 17 clusters as well as a Postgres 16 cluster.

New metrics:
cnpg_pg_stat_checkpointer_checkpoints_req
cnpg_pg_stat_checkpointer_checkpoints_timed
cnpg_pg_stat_checkpointer_write_time
cnpg_pg_stat_checkpointer_sync_time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant